﻿<%@ Page Title="" Language="C#" MasterPageFile="~/module/Fontend.Master" AutoEventWireup="true" CodeBehind="ParentWarning.aspx.cs" Inherits="mamnontuoitho7.module.ParentWarning" %>
<%@ Import Namespace="mamnontuoitho7.AppCode" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
<div class="accounts">
    <div class="login-name">
        <div class="login-name-left"></div>
        <span class="login-name-middle"><%= Session["fullname"].ToString()%></span>
        <div class="login-name-right"></div>
    </div>
    
    <div class="block-menu">
        <ul>
            <li><a href="ParentConversation.aspx">Các cuộc hội thoại</a></li>
            <li><a href="ParentKidList.aspx">Danh sách Bé</a></li>
            <li class="active">Thông báo</li>
            <li><a href="ParentProfile.aspx">Thông tin tài khoản</a></li>
            <li><a href="ChangeAvatar.aspx">Thay đổi Avatar</a></li>
        </ul>
    </div>
    <div class="block-content">
     <% if (_parent.CheckParentAvailability(Session["memberID"].ToString()) == "2")
       { 
              /* write code get datatable show into for loop */
              for (int i = 0; i < _dt.Rows.Count; i++)
              {
           %>
              <div class="commentdetail">
                    <img src="../images/avatar/teacher_parents/<%= (_dt.Rows[i]["Avatar"].ToString() != "") ?_dt.Rows[i]["Avatar"].ToString() : ConstantClass._memberDefaultAvatar %>?<%=DateTime.Now.Ticks %>" alt=""/>
                    <span class="arrow"><span></span></span>
                    <div class="blockcontent">
                        <div class="content">
                          <%--  <%= _general.ReplaceSpecialCharacters(_dt.Rows[i]["NoticeContent"].ToString()) %>     --%>
                           <%-- <textarea id="txtNewComment" name="txtNewComment" class="textarea"><%= _dt.Rows[i]["NoticeContent"].ToString()%></textarea> --%>
                           <%= _dt.Rows[i]["NoticeContent"].ToString()%>      
                        </div>
                        <div class="info">
                        bởi <a href="ProfileInfo.aspx?MemberID=<%=_dt.Rows[i]["MemberID"].ToString() %>"  class="groupprofile">
                                <%= _dt.Rows[i]["FullName"].ToString()%>
                            </a>  
                        Lớp :  <%= _dt.Rows[i]["ClassName"].ToString()%>    
                        lúc: <%= DateTime.Parse(_dt.Rows[i]["CreateDate"].ToString()).ToString("dd/MM/yyyy")%>  </div>
                    </div>
                </div>
               <%} %>
                <div id="container">
                    <div class="pagination">
                        <%if (_currentbar > 1)
                          { %>
                        <a href="ParentWarning.aspx?a=-1" class="pageblue"><<</a>
                        <%} %>
                        <%  
                            for (int j = _beginPage; j <= _endPage; j++)
                            {
                                if (j == _pageflag)
                                {
                        %>
                        <a href="ParentWarning.aspx?page=<%= j%>" class="pageblue active"><%= j%></a>
                        <% }else
                           { %>
                        <a href="ParentWarning.aspx?page=<%= j%>" class="pageblue"><%= j%></a>
                        <%  }
                                } %>
                        <%if (_currentbar < _totalBars)
                          { %>
                        <a href="ParentWarning.aspx?a=1" class="pageblue">>></a>
                        <%} %>
                    </div>
                </div>
      <%}else { %>
            <p class="commingsoon">Bạn không có bé nào đang học tại trường.</p>
       <%}%>
    </div>
</div>
</asp:Content>
